<?php

class Core_Plugin_Hook
{
	function formUserPermissionInit($form)
	{
		$form -> addChild('yesno', 'core_admincp', array(
			'label' => 'Access Admin Area',
			'desc' => 'form-desc.Access Admin Area'
		));
		$form -> addChild('yesno', 'core_viewOffline', array(
			'label' => 'View Offline',
			'desc' => 'form-desc.View Offline'
		));

		$form -> addChild('select', 'storage_quota', array(
			'label' => 'Storage Quota',
			'desc' => 'form-desc.Storage Quota',
			'multiOptions' => array(
				10 * 1048576 => '10 Mb',
				20 * 1048576 => '20 Mb',
				50 * 1048576 => '50 Mb',
				100 * 1048576 => '100 Mb',
				200 * 1048576 => '200 Mb',
				500 * 1048576 => '500 Mb',
				1 * 1073741824 => '1 Gb',
				2 * 1073741824 => '2 Gb'
			)
		));
		$form -> addChild('select', 'storage_quota', array(
			'label' => 'Storage Quota',
			'desc'=>'form-desc.Storage Quota',
			'multiOptions' => array(
				10 * 1048576 => '10 Mb',
				20 * 1048576 => '20 Mb',
				50 * 1048576 => '50 Mb',
				100 * 1048576 => '100 Mb',
				200 * 1048576 => '200 Mb',
				500 * 1048576 => '500 Mb',
				1 * 1073741824 => '1 Gb',
				2 * 1073741824 => '2 Gb'
			)
		));
		
	}

}
